//
//  ProfileTotalViewController.m
//  penzer
//
//  Created by caiyc on 2018/10/3.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "ProfileTotalViewController.h"

@interface ProfileTotalViewController ()<UIScrollViewDelegate>
@property (weak, nonatomic) IBOutlet UIScrollView *bottom_ScroView;

@end

@implementation ProfileTotalViewController
- (IBAction)withDrawAll:(UIButton *)sender {
    [self.view endEditing:1];
    self.dwarMoney_Tf.text = self.valible.text;
}
- (IBAction)withDraw:(Regular_Btn *)sender {
    [self.view endEditing:1];
    [WToast showWithText:@"暂未介入"];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.bottom_ScroView.contentSize = CGSizeMake(0, screen_height*1.2);
    self.bottom_ScroView.showsVerticalScrollIndicator = 0;
    self.bottom_ScroView.delegate = self;
    self.bottom_ScroView.backgroundColor = [UIColor clearColor];
    [self loadData];
   // self.bottom_ScroView.backgroundColor = [UIColor redColor];
    
    // Do any additional setup after loading the view from its nib.
}
-(void)loadData{
NSDictionary *param = @{@"ac":@"member",
                        @"op":@"member",
                        @"ctrl":@"live_anchor",
                        @"ta":@"total_money"};
[self weqPostHandle:param success:^(id response) {
    if(response){
        self.total_Money.text = [NSString stringWithFormat:@"%@", response[@"data"][@"total_price"]];
        self.notValide.text = [NSString stringWithFormat:@"%@", response[@"data"][@"fai_price"]];
        self.valible.text = [NSString stringWithFormat:@"%@", response[@"data"][@"ucc_price"]];
    }
} failure:^(NSError *error) {
  
}];
}
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
    [self.view endEditing:1];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
